package com.yanu.trace.t2s.controller;

import com.yanu.trace.t2s.entity.CirculateBusinesses;
import com.yanu.trace.t2s.service.CirculateBusinessesService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (CirculateBusinesses)表控制层
 *
 * @author makejava
 * @since 2021-06-22 22:24:25
 */
@RestController
@RequestMapping("circulateBusinesses")
public class CirculateBusinessesController {
    /**
     * 服务对象
     */
    @Resource
    private CirculateBusinessesService circulateBusinessesService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public CirculateBusinesses selectOne(Integer id) {
        return this.circulateBusinessesService.queryById(id);
    }

}
